package site.kitcheng.springboottest.infra.config;

import nl.basjes.parse.useragent.UserAgentAnalyzer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: UserAgentAnalyzerConfig
 * Package: site.kitcheng.springboottest.infra.config
 * Description:
 *
 * @Author jiangCheng
 * @Create 2025/3/21 16:13
 * @Version 1.0
 */
@Configuration
public class UserAgentAnalyzerConfig {

    @Bean
    public UserAgentAnalyzer getUserAgent() {
       return  UserAgentAnalyzer
                .newBuilder()
                .hideMatcherLoadStats()
                .withCache(10000)
                .build();
    }
}
